import request from '@/utils/request'

// 创建代码生成示例
export function createXTbGenInstance(data) {
  return request({
    url: '/xiaoBizHandler/XT-b-gen-instance/create',
    method: 'post',
    data: data
  })
}

// 更新代码生成示例
export function updateXTbGenInstance(data) {
  return request({
    url: '/xiaoBizHandler/XT-b-gen-instance/update',
    method: 'put',
    data: data
  })
}

// 删除代码生成示例
export function deleteXTbGenInstance(id) {
  return request({
    url: '/xiaoBizHandler/XT-b-gen-instance/delete?id=' + id,
    method: 'delete'
  })
}

// 获得代码生成示例
export function getXTbGenInstance(id) {
  return request({
    url: '/xiaoBizHandler/XT-b-gen-instance/get?id=' + id,
    method: 'get'
  })
}

// 获得代码生成示例分页
export function getXTbGenInstancePage(query) {
  return request({
    url: '/xiaoBizHandler/XT-b-gen-instance/page',
    method: 'get',
    params: query
  })
}

// 导出代码生成示例 Excel
export function exportXTbGenInstanceExcel(query) {
  return request({
    url: '/xiaoBizHandler/XT-b-gen-instance/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}

